package com.central.admin.properties;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;

/**
 * 索引配置
 * RefreshScope: 通过 Spring Cloud 原生注解 @RefreshScope 实现配置自动更新
 * @author ly
 * @email 664162337@qq.com
 * @date 2020/9/25 17:09
 */
@Setter
@Getter
@ConfigurationProperties(prefix = "my-config.indices")
@RefreshScope
public class IndexProperties {

    /**
     * 配置过滤的索引名：默认只显示这些索引
     */
    private String show;
}
